<?if($student):?>
	<table class="table">
		<tr class="info">
			<td>Student Name</td>
			<td>Level</td>
			<td>Bdate</td>
			<td>System Id #</td>
			<td colspan="2">Date Registered</td>
		</tr>
	<?foreach($student as $k=>$v):?>
		<?php //pd($v); ?>
		<tr class="<?=$current_id == $this->hs->encrypt(intval($v->enrollment_id),intval($v->pid)) ? 'current' : NULL;?>">
			<td><?=ucwords(strtolower($v->fullname));?></td>
			<td><?=ucwords(strtolower($v->level_desc));?></td>
			<td><?=ucwords(strtolower($v->dob_formated));?></td>
			<td><?=ucwords(strtolower($v->idno));?></td>
			<td><?=ucwords(strtolower($v->date_registered));?></td>
			<td>
				<?if(isset($current_id) && $current_id !== __link($v->enrollment_id)):?>
					<a href="<?=site_url($current_url).'/'.$this->hs->encrypt(intval($v->enrollment_id),intval($v->pid));?>" class="btn btn-mini btn-primary">Select</a>
				<?else:?>
					<span class="label">Selected</span>
				<?endif;?>
			</td>
		</tr>
	<?endforeach;?>
	</table>
<?else:?>
	<div class="alert">
		Sorry No Students Were Found.
	</div>
<?endif;?>